package com.magicsoft.share.ui.my;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;

import com.magicsoft.share.R;
import com.magicsoft.share.base.BaseActivity;
import com.magicsoft.share.base.BasePresenter;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class LogisticsActivity extends BaseActivity {


    @BindView(R.id.view_top)
    View viewTop;
    @BindView(R.id.ibtn_left)
    ImageButton ibtnLeft;
    @BindView(R.id.tv_left)
    TextView tvLeft;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.ibtn_right)
    ImageButton ibtnRight;
    @BindView(R.id.tv_right)
    TextView tvRight;
    @BindView(R.id.order_code)
    TextView orderCode;
    @BindView(R.id.tv_name)
    TextView tvName;
    private int state;
    @Override
    public BasePresenter initPresenter() {
        return null;
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_logistics;
    }

    @Override
    public void initData() {

    }

    @Override
    public void initView() {
//        state=getIntent().getIntExtra("state",-1);

        orderCode.setText("订单编号:"+getIntent().getStringExtra("logisticsSingleNumber"));
        tvName.setText("承运人:"+getIntent().getStringExtra("carrier"));
    }

    @Override
    public void requestData() {

    }


    @OnClick(R.id.ibtn_left)
    public void onViewClicked() {
        finish();
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }
}
